package cn.itsource.openfeign;


import cn.itsource.openfeign.fallback.CourseFeignClientFallbackFactory;
import cn.itsource.ymcc.common.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-course",fallbackFactory = CourseFeignClientFallbackFactory.class)
public interface CourseFeignClient {
    @GetMapping("/courseUserLearn/getUserLearnByLoginId/{loginId}")
    JsonResult getUserLearnByLoginId(@PathVariable("loginId")Long loginId);

    @GetMapping("/courseMarket/{id}")
    JsonResult get(@PathVariable("id")Long id);
}
